package com.topisv.tms.entity.work.inscope;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.topisv.tms.entity.IdEntity;
import com.topisv.tms.entity.User;
import com.topisv.tms.entity.work.outScope.ScopeCustomerConfig;

/**
 * 优势区设置-实体类
 * @author ch
 *
 */
@Entity
@Table(name = "in_scope")
public class InScope extends IdEntity implements Serializable {
	
	private static final long serialVersionUID = 1L;

	private String companyCode;
	
	private String zoneName;
	
	private String zoneFullName;
	
	private String zoneType;
	
	private String createrUuid;
	
	private Date createTime;

	private String warehouseCode;	//仓库编码
	
	
	private List<ScopeCustomerConfig> customerConfigList;
	
	public String getZoneFullName() {
		return zoneFullName;
	}

	public void setZoneFullName(String zoneFullName) {
		this.zoneFullName = zoneFullName;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public String getZoneName() {
		return zoneName;
	}

	public void setZoneName(String zoneName) {
		this.zoneName = zoneName;
	}

	public String getZoneType() {
		return zoneType;
	}

	public void setZoneType(String zoneType) {
		this.zoneType = zoneType;
	}

	public String getCreaterUuid() {
		return createrUuid;
	}

	public void setCreaterUuid(String createrUuid) {
		this.createrUuid = createrUuid;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getWarehouseCode() {
		return warehouseCode;
	}

	public void setWarehouseCode(String warehouseCode) {
		this.warehouseCode = warehouseCode;
	}
	@OneToMany(mappedBy="inScopeId")
	public List<ScopeCustomerConfig> getCustomerConfigList() {
		return customerConfigList;
	}

	public void setCustomerConfigList(List<ScopeCustomerConfig> customerConfigList) {
		this.customerConfigList = customerConfigList;
	}
	
	private User user ;
	@Transient
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}